package com.happle.gcmclient.obj;

import java.util.Date;

public class ConversationObj {
	private String _first_msg_id;
	private String _wave_id;
	private boolean _is_owner;
	private String _first_message;
	private String _lng_id;
	// private DateFormat[] _datetime;
	private Date _datetime;
    private boolean _conv_status; // 1 - active, 0 - closed, -1 - deleted
    private int _msgs_count;
    private boolean _has_new_messages = false; // false - a message has been seen, true - a message hasn't been seen yet

	public ConversationObj() {
	}

	public ConversationObj(String wave_id, String fistMessage) {
		this._wave_id = wave_id;
		this._first_message = fistMessage;
		this._datetime = new Date();
	}

	public ConversationObj(String first_msg_id, String wave_id, boolean is_owner,
			String first_message, String lng_id, boolean conv_status) {

		this._first_msg_id = first_msg_id;
		this._wave_id = wave_id;
		this._is_owner = is_owner;
		this._first_message = first_message;
		this._lng_id = lng_id;
		this._datetime = new Date();
		this._conv_status = conv_status;
	}

	public ConversationObj(String first_msg_id, String wave_id, boolean is_owner,
			String first_message, String lng_id, Date datetime, boolean conv_status, int msgs_count) {

		this._first_msg_id = first_msg_id;
		this._wave_id = wave_id;
		this._is_owner = is_owner;
		this._first_message = first_message;
		this._lng_id = lng_id;
		this._datetime = datetime;
		this._conv_status = conv_status;
        this._msgs_count = msgs_count;
	}

    public ConversationObj(String first_msg_id, String wave_id, boolean is_owner,
                           String first_message, String lng_id, Date datetime, boolean conv_status, int msgs_count, boolean has_new_messages) {

        this._first_msg_id = first_msg_id;
        this._wave_id = wave_id;
        this._is_owner = is_owner;
        this._first_message = first_message;
        this._lng_id = lng_id;
        this._datetime = datetime;
        this._conv_status = conv_status;
        this._msgs_count = msgs_count;
        this._has_new_messages = has_new_messages;
    }

	// get set
	public String get_first_msg_id() {
		return _first_msg_id;
	}

	public void set_first_msg_id(String _first_msg_id) {
		this._first_msg_id = _first_msg_id;
	}

	public String get_wave_id() {
		return _wave_id;
	}

	public void set_wave_id(String _wave_id) {
		this._wave_id = _wave_id;
	}

	public boolean is_is_owner() {
		return _is_owner;
	}

	public void set_is_owner(boolean _is_owner) {
		this._is_owner = _is_owner;
	}

	public String get_message() {
		return _first_message;
	}

	public void set_message(String _message) {
		this._first_message = _message;
	}

	public String get_lng_id() {
		return _lng_id;
	}

	public void set_lng_id(String _lng_id) {
		this._lng_id = _lng_id;
	}

	// public DateFormat[] get_datetime() {
	// return _datetime;
	// }
	//
	// public void set_datetime(DateFormat[] _datetime) {
	// this._datetime = _datetime;
	// }

	public Date get_datetime() {
		return _datetime;
	}

	public void set_datetime(Date _datetime) {
		this._datetime = _datetime;
	}

	public boolean is_conv_status() {
		return _conv_status;
	}

	public void set_msg_status(boolean _conv_status) {
		this._conv_status = _conv_status;
	}

    public int get_msgs_count() {
        return _msgs_count;
    }

    public void set_msgs_count(int _msgs_count) {
        this._msgs_count = _msgs_count;
    }

    public boolean is_has_new_messages() {
        return _has_new_messages;
    }

    public void set_has_new_messages(boolean is_new) {
        this._has_new_messages = is_new;
    }
	// end get set
}
